@mixin center ($px:1200px) {
    margin: auto;
    width: $px;
}

@mixin fontstyle() {
    font-size: 14px;
    line-height: 0;
    position: relative;
}

$font-color:#5A5C5B;
.header {
    width: 100%;
    &-color {
        background-color: #F7F7F7;
    }
    height: 170px;
    border-bottom: 1px solid #000;
}

.header-top {
    @include center;
    height: 30px;
    color: $font-color;
    &-collect {
        float: left;
         :first-child {
            color: #F6C200;
            font-size: 29px;
            line-height: 30px;
        }
         :last-child {
            @include fontstyle();
            top: -6px;
            left: -7px;
        }
    }
    &-other {
        float: right;
        .ac {
            display: none;
        }
        ul,
        li {
            float: left;
            font-size: 14px;
            line-height: 30px;
        }
        ul li {
             :last-child {
                margin: 10px;
            }
        }
        ul {
            .green {
                 :first-child {
                    color: #7FC128;
                }
            }
        }
    }
    a {
        color: $font-color;
    }
}

.header-middle {
    color: #777777;
    margin-top: 20px !important;
    @include center;
    height: 80px;
    &-logo {
        float: left;
        height: 60px;
        width: 198px;
        border-right: 1px solid #ccc;
        img {
            height: 100%;
        }
    }
    &-position {
        float: left;
        &-little {
            color: #80BF32;
            font-size: 12px;
            line-height: 28px;
            margin: 0 0 0 8px;
        }
    }
    &-pos {
        p {
            margin-top: 17px;
            float: left;
            padding: 0 8px;
        }
        &-other {
            margin-top: 12px;
            padding: 3px 0 3px 5px;
            border: 1px solid #ccc;
            float: right;
            b {
                float: right;
                width: 9px;
                height: 5px;
                margin: 9px 7px;
                background: url("http://www.huaguoshan.com/Tpl/Public/Images/css_bg.jpg") no-repeat scroll center;
                background-position-x: center;
                background-position-y: center;
                background-position: -729px -27px;
            }
        }
    }
    &-search {
        float: left;
        margin-left: 180px;
        padding-top: 12px;
        width: 370px;
        height: 80px;
        input {
            height: 30px;
            width: 280px;
            border: 2px solid #77BE22;
        }
        .search {
            box-sizing: border-box;
            height: 34px;
            width: 86px;
            float: right;
            background-color: #77BE22;
            text-align: center;
            color: #fff;
            line-height: 32px;
            font-size: 13px;
        }
    }
    &-other {
        padding-top: 12px;
        &-mine {
            position: relative;
            float: left;
            margin-left: 25px;
            border: 1px solid #ccc;
            height: 30px;
            font-size: 12px;
             :first-child {
                color: #77BE22;
                font-size: 25px;
                position: relative;
                top: 5px;
            }
             :last-child {
                color: #77BE22;
                font-size: 22px;
                position: relative;
                left: -3px;
                top: 2px;
            }
        }
        &-deliver {
            float: left;
            padding-top: 7px;
            margin-left: 22px;
            font-size: 13px;
             :first-child {
                color: #77BE22;
            }
        }
    }
}

.header-bottom {
    @include center;
    // padding-bottom: 5px;
    ul,
    li {
        float: left;
        font-weight: bold;
        a {
            color: #333;
        }
        span {
            font-weight: normal;
            color: #DDDDDD;
            padding: 20px;
        }
    }
    .shop-cart {
        float: right;
        background: #FFB900;
        height: 28px;
        width: 290px;
        position: relative;
        // border-bottom: 2px solid #fff;
        &-icon {
            position: absolute;
            left: -8px;
            height: 28px;
            width: 32px;
            border-radius: 50%;
            background: #343434;
            color: #fff;
            span {
                position: relative;
                left: 8px;
                top: 4px;
            }
        }
        &-font {
             :first-child {
                color: #DB2D22;
                position: relative;
                font-size: 19px;
                font-weight: bold;
                left: 45px;
                line-height: 29px;
            }
             :nth-child(2) {
                position: relative;
                left: 47px;
                font-size: 12px;
                bottom: 4px;
            }
             :last-child {
                color: #fff;
                font-size: 28px;
                position: absolute;
                right: 0;
            }
        }
    }
}

.fly {
    background-color: white;
    // position: absolute;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    font-size: 20px;
}